package com.qs.mall.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "tb_order")
public class Order implements Serializable {

    //订单id
    @Id
    private Long id;

    //用户id
    private String userId;

    //商品id
    private Long productId;

    //数量
    private Integer number;

    //单价
    private Double price;

    //总额
    private String amount;

    //商品名
    private String productName;

    //用户名
    private String username;
}
